*Table 2

use "Data_ImportantProvisions_240423.dta", clear

replace mean_general = round(mean_general, 0.01)
egen sd_general = rowsd(general*num)
replace sd_general = round(sd_general, 0.01)
keep lab mean_general cat1 sd_general



ren lab Provision
ren mean_general Mean_Importance
ren sd_general Disagreement
*Top Panel: "Most Important Provisions"
gsort -Mean_Importance



//
// below 20 in top panel 
// and 9 in the bottom. 


br Provision Mean_Importance Disagreement if Mean_Importance >= 4.5
texsave Provision Mean_Importance Disagreement using "Table_2_top.tex" if Mean_Importance >= 4.5, replace


*Bottom Panel: "Least Important Provisions"
gsort Mean_Importance
br Provision Mean_Importance Disagreement if Mean_Importance <= 2
texsave Provision Mean_Importance Disagreement using "Table_2_bottom.tex" if Mean_Importance <= 2, replace


